package testingtool;

public class InfiniteLoop
{

    public static void main( String[] args )
    {
        AClass a = new AClass();

        System.out.println( a.getSize() );
    }
}

class BaseClass
{
    public int getSize()
    {
        System.out.println( "super" );
        return 1;
    }
}

class AClass extends BaseClass
{
    int x = 0;

    @Override
    public int getSize()
    {
        System.out.println( "baby" );
        if( x == 0 )
        {
            return super.getSize();
        }
        else
        {
            return 2;
        }
    }
}
